<!doctype html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>unused plugin title (your plugin folders name is the title visible to the user)</title>
  </head>
  <body>
    <script>
      var originalTitle;

      function stop() {
        alert("stopped");
      }

      function init (message) {
        var returned_Value = message.pluginParent.callback(message.pluginParent.callback.TYPE_BACKGROUND, stop);
        try {
          parent.alert("you shouldn't get me");
        } catch(e) {}
        try {
          top.alert("you shouldn't get me either");
        } catch(e) {}
        var mapDoc = returned_Value.request_MapAccess("demo");
        if(mapDoc) {
          try {
            mapDoc.defaultView.alert("you should get me");
          } catch(e) {}
        }
      }
    </script>
  </body>
</html>